function test(){
    return new Promise((resolve,reject)=>{
        setTimeout(()=>{
            resolve('ok')
            console.log('后续执行');
        },1000)    
    })
}
async function run(){
    const result=await test()
    console.log(result);
}
run()